The DIV element is used with the CLASS attribute to represent different kinds of containers, e.g. chapter, section, abstract, or appendix.
ID
An SGML identifier used as the target for hypertext links or for naming particular elements in
associated style sheets. Identifiers are NAME tokens and must be unique within the scope of the current
document.
LANG
This is one of the ISO standard language abbreviations, e.g. "en.uk" for the variety of
English spoken in the United Kingdom. It can be used by parsers to select language specific choices for
quotation marks, ligatures and hyphenation rules. The language attribute is composed from the two letter
language code from ISO 639, optionally followed by a period and a two letter country code from ISO
3166.
CLASS
This a space separated list of SGML NAME tokens and is used to subclass tag names. For instance,
<DIV CLASS=APPENDIX> defines a division that acts as an appendix. By convention, class names
are interpreted hierarchically, with the most general class on the left and the most specific on the right,
where classes are separated by a period. The CLASS attribute is most commonly used to attach a different
style to some element, but it is recommended that where practical class names should be picked on the basis
of the element's semantics, because this permitsother uses, such as restricting search through documents by
matching on element class names. The conventions for choosing class names are outside the scope of this
document.
ALIGN
The ALIGN attribute can be used to explicitly specify the horizontal alignment of paragraphs within
a division:
NOWRAP
The NOWRAP attribute is used when you don't want the browser to automatically wrap lines. You
can then explicitly specify line breaks in paragrphs using the BR element.
CLEAR
This attribute is common to all block-like elements. When text flows around a figure or table in the
margin, you sometimes want to start the division below the figure rather than alongside it. The CLEAR
attribute allows you to move down unconditionally:
<DIV> is legal within:
<BANNER>, <BODYTEXT>, <DIV>, <FIGTEXT>, <FN>,
<FORM>, <NOTE>, <TD>, <TH>
The following markup can be used within <DIV>
<A>, <ABBREV>, <ACRONYM>, <ADDRESS>, <AU>, <B>,
<BIG>, <BLOCKQUOTE>, <BQ>, <BR>, <CITE>, <CODE>,
<DEL>, <DFN>, <DIR>, <DIV>, <DL>, <EM>, <FIG>,
<FN>, <FORM>, <H1>, <H2>, <H3>, <H4>, <H5>, <H6>,
<HR>, <I>, <IMG>, <INS>, <ISINDEX>, <KBD>, <LANG>,
<MATH>, <MENU>, <NOTE>, <OL>, <P>, <PERSON>, <PRE>,
<Q>, <S>, <SAMP>, <SMALL>, <STRONG>, <SUB>, <SUP>,
<TAB>, <TABLE>, <TT>, <U>, <UL>, <VAR>
<DIV CLASS=Abstract>
A detailed description of the H- Ion source.<P>
</DIV>